package com.example.demo.service;

import com.example.demo.model.Hero;

import java.util.List;

/**
 * @Author Hae
 * @Date 2019/9/12 10:38
 * @Version 1.0
 */
public interface HeroService {

    List<Hero> getAllHeros();

    Hero getHeroById(int id);

    int addHero(Hero hero);

    int updateHero(Hero hero);

    int deleteHero(int id);

    List<Hero> getHeroByName(String name);
}
